/*
 * ChooserScreen.java
 *
 * Created on March 14, 2006, 12:17 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package Experience.Screens;

import Experience.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;

/**
 *
 * @author dmgreen
 */
public class MediaChooserScreen extends ChoiceScreen {
    
    /** Creates a new instance of ChooserScreen */
    
    private MIDlet myMIDlet = null;
    
    public MediaChooserScreen(MIDlet mid) {
        
        super(mid, "Choose 'Camera' to take a picture, or 'Audio' to record a voice" +
                "message.", 20, "Camera", "Audio");
         
        myMIDlet = mid;
        
    }
    
    protected void leftPressed() {
        
        ExpUI mid = (ExpUI) myMIDlet;
        mid.stopRinging();
        mid.notifyNext("CAMERA");
        
    }
    protected void rightPressed() {
        ExpUI mid = (ExpUI) myMIDlet;
        mid.stopRinging();
        mid.notifyNext("AUDIO");
        
    }
    
}
